package com.foreknow.demo9Exercise4;


/**
 * 小明-->经理-->有500rmb奖金
 */
public class Manager extends Employee {
    private double comm;

    public double getComm() {
        return comm;
    }

    public void setComm(double comm) {
        this.comm = comm;
    }

    public double yuE() {
        double yuE = 0;
        Manager emp = new Manager();
        emp.setSalary(8000);
        emp.setComm(500);
        yuE = emp.getSalary()+emp.getComm();
        return yuE;
    }
}
